<?php
/**
 * Auther: Joshua Conero
 * Date: 2017/7/14 0014 22:25
 * Email: brximl@163.com
 * Name: 用户数据表
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = 'sys_user';
    protected $primaryKey = 'uid';
    // 用户是否存在
    public function UserExist($code){
        $query = $this->newQuery();
        $ctt = $query->where('account',$code)->count();
        return $ctt? true:false;
    }
}